package org.mspring.mlog;

import org.mspring.nbee.codegen.CodeGenerator;
import org.mspring.nbee.codegen.GenConfig;

import java.io.File;

/**
 * @author Gao Youbo
 * @since 2016-04-10 21:07
 */
public class CodeGen {
    public static void main(String[] args) throws Exception {
        GenConfig config = GenConfig.fromProperties(new File("./codegen.properties"));
        CodeGenerator generator = new CodeGenerator(config);
        generator.createEntityCode();
        generator.createDaoCode("t_daily");
        generator.createDaoImplCode("t_daily");
        generator.createServiceCode("t_daily");
    }
}
